package org.jeecg.config;

import lombok.extern.slf4j.Slf4j;

/**
 */
@Slf4j
public class SeqThreadLocalContext {

    private static ThreadLocal<String> currentSeq = new ThreadLocal<>();

    public static void setSeq(String seq) {
        log.debug(" setting seq to " + seq);
        currentSeq.set(seq);
    }

    public static String getSeq() {
        return currentSeq.get();
    }

    public static void clear(){
        currentSeq.remove();
    }
}
